<a class="glyphicon glyphicon-hand-left" href="<?php echo base_url()."admincp/product"; ?>" style="text-decoration: none; font-size: 18px;"> Return</a>
<br/>
<br/>
<div class="detail">
    <table class="table table-striped table-bordered bootstrap-datatable datatable responsive">
        <tr>
            <th>Name</th>
            <td><?php echo $info['product_name']; ?></td>
        </tr>
        <tr>
            <th >Image</th>
            <?php $image = unserialize($info['product_image']) ?>

            <td class="detail_image">
                <?php foreach($image as $value){ ?>
                    <img width="180px" height="180px" src="<?php echo base_url()."images/".$value;?>"/>
                <?php } ?>
            </td>
        </tr>
        <tr>
            <th>Sale</th>
            <td><?php echo $info['product_sale'] ?></td>
        </tr>
        <tr>
            <th>Price</th>
            <td><?php echo $info['product_price'] ?></td>
        </tr>
        <tr>
            <th class="description">Description</th>
            <td><?php echo $info['product_description'] ?></td>
        </tr>
        <tr>
            <th>Category</th>
            <td><?php $cate = explode(',',$info['cate_id']);
                foreach($listcate as $v){
                    foreach($cate as $k){
                        if($v['cate_id']==$k){
                            echo $v['cate_name'].'<br/>';
                        }
                    }
                }
                ?></td>
        </tr>
        <tr>
            <th>Brand</th>
            <td><?php foreach($listbrand as $v){
                    if($v['brand_id'] == $info['brand_id']){
                        echo $v['brand_name'];
                    }
                } ?></td>
        </tr>
    </table>
</div>
